<h2>Site Management</h2>
<div>
	<div style="width:100%;">
		<div style="float: left;width:45%">
			Select Site: <select id="siteList" onchange="selectChange()"><option>Loading...</option></select>
			<br />
		</div>
		<div style="float:right;width:45%" id="statusBox">
			--
		</div>
	</div>
	<hr>
	<div id="editSite" style="display:none;">
		<div id="siteInfo" style="float: left;">
			<h3>Site Configuration</h3>
			<table>
				<tr><td>Site Name</td><td><input id="FLD_site" class="datafield"></td></tr>
				<tr><td>Username</td><td><input id="FLD_user" class="datafield"></td></tr>
				<tr><td>Password</td><td><input type="password" id="FLD_password" class="datafield"></td></tr>
				<tr><td>Remote Path</td><td><input id="FLD_path" class="datafield"></td></tr>
				<tr><td><input type="button" value="Delete Site" class="datafield" onclick="removeRecord();"></td><td align="right"><input type="button" value="Save Site" onclick="saveData()"></td></tr>
			</table>
			<input type="hidden" id="FLD_id" class="datafield">
		</div>
		<div id="sitePages" style="float:right; width:500px;">
			<h3>Site Pages</h3>
			<table cellpadding="3" cellspacing="0">
				<tr><td>Page Name</td><td><input id="PAG_name" class="pagefield" size="40"></td></tr>
				<tr><td>Path</td><td><input id="PAG_path" class="pagefield" size="40"></td></tr>
				<tr><td align="right" colspan="2"><input type="button" value="Add Page" onclick="addPage()"></td></tr>
			</table>
			<h4>Active Pages</h4>			
			<table id="activePages" width="100%">
				<thead>
					<tr><td>Page</td><td>Path/Filename</td><td>&nbsp;</td></tr>
				</thead>
				<tbody></tbody>
			</table>
			
		</div>
	</div>
</div>

<script>
	// Language Definitions
	var removeRecordText="Are you sure you wish to DELETE this site?";
	var saveConfirmText="Are you sure you wish to save this site?";
	var addNewSite="Add New Site...";
	var chooseSite="Choose Site";
	var addPageText="Are you sure you want to add this page?";
	var removePageText="Are you sure you want to DELETE this page?";
	var deletePageText="[Delete]";
	var loadingMessage='Loading...';
	// Used to place ajax loader instead of images.
	if(typeof(ajaxLoader) != 'undefined'){
		loadingMessage=ajaxLoader;
	}
</script>
